package licode.unisop.realm.domainx.dp;

import org.springframework.util.Assert;

public class Account {
    private final String account;

    public Account(String account) {
        Assert.notNull(account, "账号为空：" + account);
        this.account = account;
    }

    public String getAccount() {
        return account;
    }

    public boolean equals(Account Other) {
        return this.account.equals(Other.getAccount());
    }

    @Override
    public String toString() {
        return account;
    }
}
